/********************************************
 * GameObject Class
 */

function GameObject(x, y, imgPath, idx, w, h)
{	
	this.position = new Point(x, y);
	this.image = new Image();
	this.image.src = imgPath;
	this.width = w;
	this.height = h;
	this.idx = idx;
	this.isSelected = false;
	this.center = new Point(this.position.X + this.width / 2, 
					this.position.Y + this.height / 2);
}
